<?php /* Smarty version 2.6.26, created on 2018-07-05 16:55:01
         compiled from D:%5Cwww%5Cvweb/admin%5Ctemplates/plug/version.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
<div class="cnav"><a href="javascript:;" class="back">版本更新</a></div> 
<div class="main"> 
	<input type="hidden" id="version_name" value="<?php echo $this->_tpl_vars['row']['name']; ?>
"/>
	<table width="100%" class="etable">
		<tr>
			<td width="100">名称：</td>
			<td><?php echo $this->_tpl_vars['row']['title']; ?>
</td>
		</tr>
		<tr>
			<td>标签：</td>
			<td><?php echo $this->_tpl_vars['row']['name']; ?>
</td>
		</tr> 
		<tr>
			<td>描述：</td>
			<td><?php echo $this->_tpl_vars['row']['desc']; ?>
</td>
		</tr>
		<tr>
			<td>当前版本：</td>
			<td><?php echo $this->_tpl_vars['row']['version']; ?>
</td>
		</tr>
		<tr>
			<td>最新版本：</td>
			<td><div class="new_version"><?php echo $this->_tpl_vars['row']['version']; ?>
</div></td>
		</tr> 
		<tr id="update_button" style="display:none;">
			<td>&nbsp;</td>
			<td><a href="?m=plug&a=version_update&vname=<?php echo $this->_tpl_vars['row']['name']; ?>
&vid=<?php echo $this->_tpl_vars['row']['version']; ?>
" class="abutton">更新版本</a></td>
		</tr>
	</table>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<script type="text/javascript">
$(function(){
	vname = $("input#version_name").val();
	$.get("?m=plug&a=version_new&vname="+vname, function(result){
		data = jQuery.parseJSON(result);
		if(data.error == '0'){
			if(data.version_id == '<?php echo $this->_tpl_vars['row']['version']; ?>
'){
				$(".new_version").html('已经是最新版本');
			}else{
				$(".new_version").html(data.version_id);
				$("#update_button").show();	
			}
		}else{
			$(".new_version").html(data.msg);
		} 
	}); 
	
	
});
</script>